﻿import kliment.geom.draw.FillBitmapStyle;
import kliment.geom.draw.FillColorStyle;
import kliment.geom.draw.GradientStyle;
import kliment.geom.draw.LineStyle;
/**
 * ...
 * @author	Kliment
 * @version	1.1.0
 */

class kliment.geom.draw.DrawStyle {
	public var fillColorStyle:FillColorStyle;
	public var lineStyle:LineStyle;
	public var fillGradientStyle:GradientStyle;
	public var fillBitmap:FillBitmapStyle;
	public var lineGradientStyle:GradientStyle;
	
	public function DrawStyle(fillColorStyle:FillColorStyle, lineStyle:LineStyle, fillGradientStyle:GradientStyle, fillBitmap:FillBitmapStyle, lineGradientStyle:GradientStyle) {
		this.fillColorStyle = fillColorStyle;
		this.lineStyle = lineStyle;
		this.fillGradientStyle = fillGradientStyle;
		this.fillBitmap = fillBitmap;
		this.lineGradientStyle = lineGradientStyle;
	}
	
	public function clone(totalClone:Boolean):DrawStyle {
		if (totalClone == true)
			return new DrawStyle(fillColorStyle.clone(), lineStyle.clone(), fillGradientStyle.clone(), fillBitmap.clone(), lineGradientStyle.clone());
		else 
			return new DrawStyle(fillColorStyle, lineStyle, fillGradientStyle, fillBitmap, lineGradientStyle);
	}
}